#!/bin/bash

for i in $(ls ./reviews2017); do repo=$(grep -A2 ">Repository:<" ./reviews2017/$i | tail -n 1 | cut -f2 -d ">" | cut -f1 -d "<"); echo $i, $repo;  done > request_repo.res
